package com.bawei.library_base.mvvm;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import org.jetbrains.annotations.NotNull;

/**
 * @author : zhiyu
 * @date :
 * @content :
 */
public abstract class BaseFragment extends Fragment {

    @Override
    public void onViewCreated(@NonNull @NotNull View view, @Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        //绑定视图的
        initEnv();
        //获取数据的
        initData();
    }

    protected abstract void initEnv();
    protected abstract void initData();
    protected abstract int bindLayout();
}
